
#include "Operation.h"

using namespace npFactoryMethod;


Operation::Operation()
{
    this->first_num = 0;
    this->second_num = 0;
}

Operation::~Operation()
{

}

Operation::Operation(const Operation& cpy)
{
    this->first_num = cpy.first_num;
    this->second_num = cpy.second_num;
}

Operation& Operation::operator=(const Operation& asn)
{
    if (this == &asn)
    {
        return *this;
    }
    else
    {
        this->first_num = asn.first_num;
        this->second_num = asn.second_num;
        return *this;
    }
}

Operation* Operation::clone() const
{
    return nullptr;
}

void Operation::setFirstNum(int first_num)
{
    this->first_num = first_num;
}

int Operation::getFirstNum() const
{
    return this->first_num;
}

void Operation::setSecondNum(int second_num)
{
    this->second_num = second_num;
}

int Operation::getSecondNum() const
{
    return this->second_num;
}
